import root from './packages/root';
import bus from './packages/bus';
import order from './packages/order';
export default defineAppConfig({
  pages: root,
  subPackages: [
    {
      root: 'pagesBus',
      pages: bus
    },
    {
      root: 'pagesOrder',
      pages: order
    }
  ],
  tabBar: {
    color: '#666',
    backgroundColor: '#f2f2f2',
    selectedColor: '#000000',
    borderStyle: 'white',
    list: [
      {
        pagePath: 'pages/home/index',
        text: '首页',
        iconPath: '/assets/tabs/home.png',
        selectedIconPath: '/assets/tabs/home_over.png'
      },
      {
        pagePath: 'pages/goods/classify/index',
        text: '分类',
        iconPath: '/assets/tabs/category.png',
        selectedIconPath: '/assets/tabs/category_over.png'
      },
      {
        pagePath: 'pages/cart/index',
        text: '购物车',
        iconPath: '/assets/tabs/cart.png',
        selectedIconPath: '/assets/tabs/cart_over.png'
      },
      {
        pagePath: 'pages/my/index',
        text: '个人中心',
        iconPath: '/assets/tabs/person.png',
        selectedIconPath: '/assets/tabs/person_over.png'
      }
    ]
  },

  requiredPrivateInfos: ['getLocation', 'chooseLocation', 'chooseAddress'],
  networkTimeout: {
    request: 4000
  },
  permission: {
    'scope.userLocation': {
      desc: '你的位置信息将用于方便的添加您的收货地址'
    }
  },
  window: {
    backgroundTextStyle: 'dark',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'black'
  }
});
